package com.atguigu.daijia.model;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @Author XiangLiang
 * @Since 2024/12/13 16:11
 * @Description: User类
 */
@Data
@Document("user") // 指定mongodb中的集合名字
public class User {
    @Id
    private ObjectId id;

    private String name;

    private Integer age;

    private String email;

    private Date createDate;
}
